CC = gcc

src=$(wildcard *.c ./list/*.c)
nodirsrc=$(notdir $(src))
objects := $(patsubst %.c,%.o,$(src))  

target := cmtune  

all: $(target)   
$(target): $(objects)  
	$(CC) $^ -o $@  

show:
	@echo $(src)
	@echo $(nodirsrc)
	@echo $(objects)
	
clean:  
	rm -f *.o
	rm -rf $(target)  
.PHONY: clean  
